﻿using System;
using System.Collections.Generic;
//using System.Linq;
using System.Text;
using DaInterFace;
using Newtonsoft.Json;

namespace DaFunction.PDA
{
    public class PDAJson : IJson
    {
        public string ClassToJson(object obj)
        {
            return JsonConvert.SerializeObject(obj);
        }

        public object JsonToClass(string jsonString, Type type)
        {
            return JsonConvert.DeserializeObject(jsonString, type);
        }
    }
}
